<!-- AddServer.vue -->
<template>
            <el-dialog v-model="props.showAddServerDialog" :show-close = false title="德玛西亚" width="500" center>
            <span>
              啦啦啦德玛西亚
            </span>
            <template #footer>
                <div class="dialog-footer">
                    <el-button @click="cancel">取消</el-button>
                    <el-button type="primary" @click="confirm">
                        确定
                    </el-button>
                </div>
            </template>
        </el-dialog>
</template>
<script setup>
 
const props = defineProps({
  showAddServerDialog: Boolean,
});
const emit = defineEmits(['isShow','confirm'])
console.log(props.showAddServerDialog,'??????');
 

// 取消
function cancel() {
  console.log('?');
  emit("isShow",false);
}

// 确定
function confirm() {
  console.log('?');
  emit("confirm",false);
}
</script>